package trace

var defaultOption = option{}

type option struct {
	Debug    bool
	MustKeep bool
}

// Option dapper Option
type Option func(*option)

// EnableDebug enable debug mode
func EnableDebug() Option {
	return func(opt *option) {
		opt.Debug = true
	}
}

// MustKeep mark span flag do not sampled
func MustKeep() Option {
	return func(opt *option) {
		opt.MustKeep = true
	}
}
